﻿<%@ Page Language="C#" MasterPageFile="../MasterPages/MedianamikModule.Master"  AutoEventWireup="true" CodeBehind="GroupManagement.aspx.cs" Inherits="Medianamik.UI.SecurityManagement.GroupManagement" %>

<asp:Content ID="ContextMenuContent" ContentPlaceHolderID="ContextMenu" runat="server">
    <asp:LinkButton ID="lnkSave" CssClass="Action BtSauvegarder" runat="server" OnClick="Save_Click"><asp:localize runat="server" Text="<%$ Resources: Medianamik_SecurityManagement,SaveGroup%>"></asp:localize></asp:LinkButton>
    <a class="Action BtAnnuler" href="<%= ReturnURL %>"><asp:Localize runat="server" Text="<%$ Resources: Medianamik_Global,Cancel %>"></asp:Localize></a>
</asp:Content>

<asp:Content ID="CenterContent" ContentPlaceHolderID="CenterContent" runat="server">
	<h2><%= IsNew ? Resources("Medianamik_SecurityManagement", "NewGroupTitle") : CurrentGroup.TranslatedName %></h2>
	
	<p><span class="ChampObligatoire">* </span><asp:Literal ID="Literal1" runat="server" Text="<%$ Resources: Medianamik_Global, RequiredField %>" /></p>
    <asp:ValidationSummary CssClass="ValidationSummary" runat="server" />
    
	<asp:PlaceHolder ID="GroupNamePlaceHolder" runat="server">
		<p><label><span class="ChampObligatoire">*</span><asp:Literal runat="server" Text="<%$Resources:Medianamik_SecurityManagement, GroupNameLabel  %>" /></label>
		    <asp:TextBox id="txtGroupName" runat="server" CssClass="TxtBox" TabIndex="1" />
		    <asp:CustomValidator Display="None" runat="server" ValidateEmptyText="true" ID="cvGroupName" OnServerValidate="cvGroupName_ServerValidate" ControlToValidate="txtGroupName" />
		    <asp:RegularExpressionValidator EnableClientScript="false" ID="revNameValidation" runat="server" ControlToValidate="txtGroupName" Text="Vous ne pouvez pas entrez de caractères spéciaux." ErrorMessage="<%$ Resources : Medianamik_TypeManagement, PropertyNameIsInvalid %>" Display="none" ValidationExpression="^[a-zA-Z0-9_-]{2,15}$" />
		    </p>
	</asp:PlaceHolder>
	
	<med:TranslatorBox id="GroupTranslator" runat="server" Label="<%$ Resources: Medianamik_SecurityManagement, RoleNameTranslatorLabel %>" Required="true" />
	
	<p><label><span class="ChampObligatoire">*</span><asp:Literal runat="server" Text="<%$Resources:Medianamik_SecurityManagement, RolesLabel %>" /></label>
	    <med:RoleCheckBoxList id="chkRoles" runat="server" /></p>
</asp:Content>